package com.starleague.game.android;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import com.starleague.game.HasPlayers;

import android.app.Activity;
import android.os.Bundle;

public class GameActivity
        extends Activity
        implements HasPlayers
{
    private final List<AndroidPlayer> playerList = new ArrayList<>();

    public GameActivity()
    {
        this.playerList.add(new AndroidPlayer("playerTom", 7, 3));
        this.playerList.add(new AndroidPlayer("playerJones", 0, 0));
        this.playerList.add(new AndroidPlayer("playerRick", 1, 2));
        this.playerList.add(new AndroidPlayer("playerJames", 11, 13));
    }

    @Override
    public Collection<AndroidPlayer> getPlayers()
    {
        return this.playerList;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_game);
    }
}
